package com.example.demo.netty.基于Netty实现RPC框架.客户端;

import com.example.demo.netty.基于Netty实现RPC框架.API接口.HelloService;
import com.example.demo.netty.基于Netty实现RPC框架.客户端代理.ProxyFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class ClientApplication {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(ClientApplication.class, args);
        HelloService helloService = ProxyFactory.create(HelloService.class);
        // log.info("响应结果“: {}",helloService.hello("pjmike"));
        System.out.println("响应结果: " + helloService.hello("pjmike"));
    }
}
